<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>留言板</title>
    <link rel="stylesheet" href="{{ static_url('style.css') }}">
</head>
<body>
<form action="/" method="post" class="smart-green">
    <h1>留言信息
        <span>请留下你的信息.</span>
    </h1>

    {#% autoescape None %#}
    {% for field in message_from %}
    <label>
        <span>{{ field.label.text }} :</span>
        {% raw field(placeholder="请输入"+field.label.text,class_="error") %}
        {% if field.errors %}
        <div class="error-msg">{{ field.errors[0] }}</div>
        {% end %}
    </label>
    {% end %}
    <div class="success-msg"></div>
    <label>
        <span>&nbsp;</span>
        <input type="submit" class="button" value="提交"/>
    </label>
</form>

</body>
</html>